/* 公告弹窗容器 */
.notice-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    max-width: 90%;
    height: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notice-modal--active {
    display: flex;
}

/* 弹窗头部 */
.notice-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(90deg, #3498db 0%, #1a5f9e 100%);
    color: white;
}

.notice-modal__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.notice-modal__close-btn {
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notice-modal__close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 弹窗内容区 */
.notice-modal__content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧公告列表 */
.notice-modal__sidebar {
    width: 35%;
    background: #f8f9fa;
    overflow-y: auto;
    border-right: 1px solid #eaeaea;
    padding: 16px 0;
}

.notice-modal__list-item {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notice-modal__list-item:hover {
    background: #edf2f7;
}

.notice-modal__list-item--active {
    background: #e2e8f0;
    border-left: 4px solid #3498db;
}

.notice-modal__list-title {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.notice-modal__list-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #e74c3c;
    color: white;
}

.notice-modal__list-type--notice {
    background: #3498db;
}

/* 右侧公告内容 */
.notice-modal__main {
    width: 65%;
    padding: 24px;
    overflow-y: auto;
}

.notice-modal__detail-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f1f1;
}

.notice-modal__detail-content {
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}

.notice-modal__detail-content p {
    margin-bottom: 16px;
}

/* 加载状态 */
.notice-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.notice-modal__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #95a5a6;
}

.notice-modal__placeholder .icon-notice {
    font-size: 64px;
    margin-bottom: 16px;
    color: #bdc3c7;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .notice-modal__content {
        flex-direction: column;
    }

    .notice-modal__sidebar,
    .notice-modal__main {
        width: 100%;
        height: 50%;
    }
}